<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; Charset=gb2312">
    <meta http-equiv="Content-Language" content="zh-CN">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
    <title>小白分享 - 通往新世界的大门!</title>
    <link rel="shortcut icon" href="static/bl/images/Logo_40.png" type="image/x-icon">
    <link href="static/bl/plug/layui/css/layui.css" rel="stylesheet" />
    <!--font-awesome-->
    <link href="static/bl/plug/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
    <!--全局样式表-->
    <link href="static/bl/css/global.css" rel="stylesheet" />
    <!-- 本页样式表 -->
    <link href="static/bl/css/home.css" rel="stylesheet" />
</head>
<body>
    <!-- 导航 -->
    <nav class="blog-nav layui-header">
        <div class="blog-container">
            <!-- QQ互联登陆 -->
            <a href="javascript:;" class="blog-user">
                <i class="fa fa-qq"></i>
            </a>
            <a href="javascript:;" class="blog-user layui-hide">
                <img src="static/bl/images/Absolutely.jpg" alt="Absolutely" title="Absolutely" />
            </a>
            <!-- 小白分享 -->
            <a class="blog-logo" href="${pageContext.request.contextPath}/index.html">小白分享</a>
            <!-- 导航菜单 -->
            <ul class="layui-nav" lay-filter="nav">
                                <li class="layui-nav-item">
                    <a href="${pageContext.request.contextPath}/index.html"><i class="fa fa-home fa-fw"></i>&nbsp;网站首页</a>
                </li>
                <li class="layui-nav-item layui-this">
                    <a href="${pageContext.request.contextPath}/article.html"><i class="fa fa-file-text fa-fw"></i>&nbsp;文章专栏</a>
                </li>
                <li class="layui-nav-item">
                    <a href="${pageContext.request.contextPath}/about.html"><i class="fa fa-info fa-fw"></i>&nbsp;关于本站</a>
                </li>
            </ul>
            <!-- 手机和平板的导航开关 -->
            <a class="blog-navicon" href="javascript:;">
                <i class="fa fa-navicon"></i>
            </a>
        </div>
    </nav>
    <!-- 主体（一般只改变这里的内容） -->
    <div class="blog-body">
        <!-- canvas -->
        <canvas id="canvas-banner" style="background: #393D49;"></canvas>
        <!--为了及时效果需要立即设置canvas宽高，否则就在home.js中设置-->
        <script type="text/javascript">
            var canvas = document.getElementById('canvas-banner');
            canvas.width = window.document.body.clientWidth - 10;//减去滚动条的宽度
            if (screen.width >= 992) {
                canvas.height = window.innerHeight * 1 / 3;
            } else {
                canvas.height = window.innerHeight * 2 / 7;
            }
        </script>
        <!-- 这个一般才是真正的主体内容 -->
        <div class="blog-container">
            <div class="blog-main">
                <!-- 网站公告提示 -->
                <div class="home-tips shadow">
                    <i style="float:left;line-height:17px;" class="fa fa-volume-up"></i>
                    <div class="home-tips-container">
                        <span style="color: #009688">111111111111111111111</span>
                        <span style="color: red">2222222222222222222</span>
                        <span style="color: red">333333333333</span>
                        <span style="color: #009688">444444444444444444444</span>
                    </div>
                </div>
                <!--左边文章列表-->
                <div class="blog-main-left">
                <c:forEach items="${articleList}" var="list">
		                    <div class="article shadow">
		                        <div class="article-left">
		                            <img src="static/bl/images/cover/201703181909057125.jpg" alt="${list.title}" />
		                        </div>
		                        <div class="article-right">
		                            <div class="article-title">
		                                <a href="${pageContext.request.contextPath}/article/${list.id}.html">${list.title}</a>
		                            </div>
		                            <div class="article-abstract">
		                            	${list.summary }
		                            </div>
		                        </div>
		                        <div class="clear"></div>
		                        <div class="article-footer">
		                            <span><i class="fa fa-clock-o"></i>&nbsp;&nbsp;  
		                          	 	 <fmt:formatDate value="${list.releaseDate}" type="date" pattern="yyyy-MM-dd HH:mm" /></span>
		                            <span class="article-author"><i class="fa fa-user"></i>&nbsp;&nbsp;${list.author}</span>
		                            <span><i class="fa fa-tag"></i>&nbsp;&nbsp;<a href="#">${list.arcType.typeName}</a></span>
		                            <span class="article-viewinfo"><i class="fa fa-eye"></i>&nbsp;${list.clickHit}</span>
		                        </div>
		                    </div>
                    </c:forEach>
                     
                </div>
                <!--右边小栏目-->
                <div class="blog-main-right">
                
                    <div class="blogerinfo shadow">
                        <div class="blogerinfo-figure">
                            <img src="static/bl/images/Absolutely.jpg" alt="Absolutely" />
                        </div>
                        <p class="blogerinfo-nickname">小白分享</p>
                        <p class="blogerinfo-introduce">通往新世界的大门!</p>
                        <p class="blogerinfo-location"><i class="fa fa-location-arrow"></i>&nbsp;蓝星</p>
                        <hr />
                        <div class="blogerinfo-contact">
                            <a target="_blank" title="QQ交流" href="javascript:layer.msg(' 11111')"><i class="fa fa-qq fa-2x"></i></a>
                            <a target="_blank" title="给我写信" href="javascript:layer.msg('22222')"><i class="fa fa-envelope fa-2x"></i></a>
                            <a target="_blank" title="新浪微博" href="javascript:layer.msg('33333')"><i class="fa fa-weibo fa-2x"></i></a>
                        </div>
                    </div>
                    
                    
                    <div></div><!--占位-->
                    <div class="blog-module shadow">
                        <div class="blog-module-title">热文排行</div>
                        <ul class="fa-ul blog-module-ul">
                            <li><i class="fa-li fa fa-hand-o-right"></i><a href="detail.jsp">Web安全之跨站请求伪造CSRF</a></li>
                        </ul>
                    </div>
                    <div class="blog-module shadow">
                        <div class="blog-module-title">最近分享</div>
                        <ul class="fa-ul blog-module-ul">
                            <li><i class="fa-li fa fa-hand-o-right"></i><a href="http://pan.baidu.com/s/1c1BJ6Qc" target="_blank">Canvas</a></li>
                        </ul>
                    </div>
                    <div class="blog-module shadow">
                        <div class="blog-module-title">友情链接</div>
                        <ul class="blogroll">
                            <li><a target="_blank" href="https://www.baidu.com" title="BaiDu">BaiDu</a></li>
                        </ul>
                    </div>
                </div>
                <div class="clear"></div>
            </div>
        </div>
    </div>
    <!-- 底部 -->
    <footer class="blog-footer">
        <p><span>Copyright</span><span>&copy;</span><span>2017</span><a href="http://www.lyblogs.cn">小白分享</a><span>Design By ShuangMu</span></p>
        <p><a href="http://www.miibeian.gov.cn/" target="_blank">蜀ICP备16029916号-1</a></p>
    </footer>
    <!--侧边导航-->
    <ul class="layui-nav layui-nav-tree layui-nav-side blog-nav-left layui-hide" lay-filter="nav">
                      <li class="layui-nav-item">
                    <a href="${pageContext.request.contextPath}/index.html"><i class="fa fa-home fa-fw"></i>&nbsp;网站首页</a>
                </li>
                <li class="layui-nav-item layui-this">
                    <a href="${pageContext.request.contextPath}/article.html"><i class="fa fa-file-text fa-fw"></i>&nbsp;文章专栏</a>
                </li>
                <li class="layui-nav-item">
                    <a href="${pageContext.request.contextPath}/about.html"><i class="fa fa-info fa-fw"></i>&nbsp;关于本站</a>
                </li>
    </ul>
    <!--分享窗体-->
    <div class="blog-share layui-hide">
        <div class="blog-share-body">
            <div style="width: 200px;height:100%;">
                <div class="bdsharebuttonbox">
                    <a class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
                    <a class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
                    <a class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
                    <a class="bds_sqq" data-cmd="sqq" title="分享到QQ好友"></a>
                </div>
            </div>
        </div>
    </div>
    <!--遮罩-->
    <div class="blog-mask animated layui-hide"></div>
    <!-- layui.js -->
    <script src="static/bl/plug/layui/layui.js"></script>
    <!-- 全局脚本 -->
    <script src="static/bl/js/global.js"></script>
    <!-- 本页脚本 -->
    <script src="static/bl/js/home.js"></script>
</body>
</html>